﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UIWindows.MESModels
{
    public class MESPrechargeTrayInfoModelParentvo
    {
        /// <summary>
        /// 托盘号
        /// </summary>
        public string TrayNomber { get; set; } = "";
        /// <summary>
        /// 装盘开始时间
        /// </summary>
        public string Dishupstarttime { get; set; } = "";
        /// <summary>
        /// 装盘结束时间
        /// </summary>
        public string Dishupfinishtime { get; set; } = "";
        /// <summary>
        /// 每盘数量
        /// </summary>
        public string Amount { get; set; } = "";
        /// <summary>
        /// 工单号
        /// </summary>
        public string Workorder { get; set; } = "";
        /// <summary>
        /// 料号
        /// </summary>
        public string Partnumber { get; set; } = "";
        /// <summary>
        /// 型号
        /// </summary>
        public string Modelnumber { get; set; } = "";
        /// <summary>
        /// 工序
        /// </summary>
        public string Process { get; set; } = "";
        /// <summary>
        /// 机台
        /// </summary>
        public string Equipment { get; set; } = "";
        /// <summary>
        /// 操作员
        /// </summary>
        public string Operator { get; set; } = "";
        /// <summary>
        /// 批次号
        /// </summary>
        public string Batchnumber { get; set; } = "";
        /// <summary>
        /// 产品标志
        /// </summary>
        public string ProductMark { get; set; } = "";
        /// <summary>
        /// 入库状态
        /// </summary>
        public string Into_State { get; set; } = "";
    }
    public class MESPrechargeTrayInfoModelChildrenvo
    {
        /// <summary>
        /// 
        /// </summary>
        public string TrayNomber { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public string Batteries { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public string Location { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public string Grade { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public string Ngcode { get; set; } = "";
        /// <summary>
        /// 
        /// </summary>
        public string Ocv { get; set; } = "";
        /// <summary>
        /// IR阻值
        /// </summary>
        public string Ir { get; set; } = "";
        /// <summary>
        /// 电压
        /// </summary>
        public string Voltage { get; set; } = "";

        /// <summary>
        /// 托盘码
        /// </summary>
        public string YuChong_Parameters3 { get; set; }
        /// <summary>
        /// IR阻值
        /// </summary>
        public string YuChong_Parameters4 { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        public string YuChong_Parameters5 { get; set; }
        /// <summary>
        /// 工步类型
        /// </summary>
        public string YuChong_Parameters6 { get; set; }
        /// <summary>
        /// 工步号
        /// </summary>
        public string YuChong_Parameters7 { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public string YuChong_Parameters8 { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        public string Voltage1 { get; set; }
        /// <summary>
        /// 容量
        /// </summary>
        public string YuChong_Parameters9 { get; set; }
        /// <summary>
        /// 能量
        /// </summary>
        public string YuChong_Parameters10 { get; set; }


    }
    public class MESPrechargeTrayInfoModel
    {
        /// <summary>
        /// 
        /// </summary>
        public MESPrechargeTrayInfoModelParentvo parentvo { get; set; } = new MESPrechargeTrayInfoModelParentvo();
        /// <summary>
        /// 
        /// </summary>
        public List<MESPrechargeTrayInfoModelChildrenvo> childrenvo { get; set; } = new List<MESPrechargeTrayInfoModelChildrenvo>();
    }

    public class MESPrechargeTrayInfoDataLogModel : MESPrechargeTrayInfoModel
    {
        /// <summary>
        /// 序号
        /// </summary>
        public Guid ID { get; set; }
        /// <summary>
        /// 上传结果
        /// </summary>
        public string Result { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadedDate { get; set; }
        /// <summary>
        /// 补录时间
        /// </summary>
        public DateTime SupplementalDate { get; set; } = DateTime.MinValue;

        /// <summary>
        /// 当前状态 -1 上传失败 0 重新上传失败 1 重新上传成功
        /// </summary>
        public int CurrentStatus { get; set; } = -1;
    }
}
